package week2;

public class LinkedStackTest {
    public static void main(String[] args) {
        LinkedStack linkedStack = new LinkedStack();


        linkedStack.push(233);
        linkedStack.push(155);
        linkedStack.push(477);
        System.out.println("栈中所有元素:" + linkedStack.toString());
        System.out.println("显示栈顶元素：" + linkedStack.peek());
        System.out.println("空栈的元素个数" + linkedStack.size());
        System.out.println("栈是否为空：" + linkedStack.isEmpty());

    }
}
